import request from '@/utils/request'

// 查询房间锁信息列表
export function lockList(houseId) {
    return request({
        url: '/front/flat/lock/houseLock/list?houseId=' + houseId,
        method: 'get'
    })
}

// 查询房间临时密码列表
export function tempPasswordList(query) {
    return request({
        url: '/front/flat/lock/houseLock/pwdList',
        method: 'get',
        params: query
    })
}

// {
//     "lockId": 5, //锁信息id
//     "orderId": "", //订单id
//     "authStartTime": "2024-07-30 12:10:35", //授权开始时间
//     "authEndTime": "2024-07-31 12:10:38" //授权结束时间
// }
// 新增临时密码
export function addTempPassword(data) {
    return request({
        url: '/front/flat/lock/houseLock/addPwd',
        method: 'post',
        data
    })


}